import { reactive } from "vue";
import type { FormRules } from "element-plus";
import type { FormItemProps } from "../type/deviceRelationTypes";

export const formRules = reactive(<FormRules<FormItemProps>>{
  mainDeviceId: [
    { required: true, message: "主设备ID为必填项", trigger: "blur" }
  ],
  relatedDeviceId: [
    { required: true, message: "关联设备ID为必填项", trigger: "blur" }
  ],
  relationStatus: [
    { required: true, message: "关联状态为必填项", trigger: "blur" }
  ]
});
